package com.team.app.service;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.team.app.dao.BrandDao;
import com.team.app.model.Brand;


@Service
public class BrandServiceImpl implements BrandService{
	@Autowired
    private BrandDao brandDao;     

	@Override
	@Transactional
	public Long create(Brand obj) {
		// TODO Auto-generated method stub
		return brandDao.create(obj);
	}

	@Override
	@Transactional
	public void edit(Brand obj) {
		// TODO Auto-generated method stub
		brandDao.edit(obj);
	}

	@Override
	@Transactional
	public void remove(Brand obj) {
		// TODO Auto-generated method stub
		brandDao.remove(obj);
	}

	@Override
	@Transactional
	public Brand find(Object id) {
		// TODO Auto-generated method stub
		return brandDao.find(id);
	}

	@Override
	@Transactional
	public List<Brand> findAll() {
		// TODO Auto-generated method stub
		return brandDao.findAll();
	}

	@Override
	@Transactional
	public List<Brand> findRange(int[] range) {
		// TODO Auto-generated method stub
		return brandDao.findRange(range);
	}

	@Override
	@Transactional
	public Long count() {
		// TODO Auto-generated method stub
		return brandDao.count();
	} 
}
